﻿using hlog;
using hq;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;

namespace print
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
    
        static void Main()
        {

            Process[] processes = Process.GetProcessesByName(GuidangCache.systemName);
            if( processes.Length > 1 ) {
                Console.WriteLine("无法重复启动");
                Console.ReadLine();
            } else {
                LoggerCommon.loggerMyConsole = false;
                HttpApiFacade.initTypes(-1 ,12138 ,true);
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                Application.Run(new FrmServer());
            }
          
        }
    }
}
